CVE-2026-25645
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
Description
Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.
INFO
Published Date :
March 25, 2026, 5:16 p.m.
Last Modified :
March 30, 2026, 2:23 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the requests library to version 2.33.0 or later.
- Ensure temporary directories are not world-writable.
- Avoid running applications with unnecessary privileges.
Public PoC/Exploit Available at Github
CVE-2026-25645 has a 9 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-25645.
| URL | Resource |
|---|---|
| https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7 | Patch |
| https://github.com/psf/requests/releases/tag/v2.33.0 | Release Notes |
| https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2 | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-25645 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-25645
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Akamai Cloud migration evaluation - AWS Bookstore Demo
Makefile Dockerfile HTML Go Template Shell JavaScript Python HCL
None
Dockerfile Python
None
Shell Dockerfile JavaScript HTML CSS Python
NotebookLM MCP CLI - Access NotebookLM via Claude with security fixes and FastMCP 1.0 compatibility
Python
MVidarr - The Music Video Management System
HTML Python Shell JavaScript CSS TypeScript Batchfile Dockerfile Mako Go Template
None
Dockerfile Python CSS JavaScript HTML Shell
None
Dockerfile Python CSS JavaScript HTML Shell
None
Dockerfile Python CSS JavaScript HTML Shell
A powerful Discord bot and web interface to manage Docker containers remotely. This application bridges the gap between Discord and your Docker environment, allowing container monitoring and control directly through Discord channels.
Dockerfile Python HTML Shell JavaScript CSS
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-25645 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-25645 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N Added CPE Configuration OR *cpe:2.3:a:python:requests:*:*:*:*:*:*:*:* versions up to (excluding) 2.33.0 Added Reference Type GitHub, Inc.: https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/psf/requests/releases/tag/v2.33.0 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2 Types: Vendor Advisory -
CVE Modified by [email protected]
Mar. 25, 2026
Action Type Old Value New Value Changed Description Requests is a HTTP library. Prior to version 2.33.0, the function `requests.utils.extract_zipped_paths()` (which is used by `HTTPAdapter.cert_verify()` to load the CA bundle, often from the `certifi` package's zipapp structure) uses a predictable, non-unique filename (the basename of the file, e.g., `cacert.pem`) when attempting to extract files into the system's temporary directory (`/tmp`). The vulnerable logic performs a check to see if the target file already exists in `/tmp` and re-uses the existing file if found, instead of securely checking the file's content or ensuring atomic, unique extraction. This allows a Local Attacker to pre-create a malicious CA bundle file (e.g., `/tmp/cacert.pem`) before a vulnerable application (running with potentially higher privileges) initializes the `requests` library. Version 2.33.0 contains a patch. Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access. -
New CVE Received by [email protected]
Mar. 25, 2026
Action Type Old Value New Value Added Description Requests is a HTTP library. Prior to version 2.33.0, the function `requests.utils.extract_zipped_paths()` (which is used by `HTTPAdapter.cert_verify()` to load the CA bundle, often from the `certifi` package's zipapp structure) uses a predictable, non-unique filename (the basename of the file, e.g., `cacert.pem`) when attempting to extract files into the system's temporary directory (`/tmp`). The vulnerable logic performs a check to see if the target file already exists in `/tmp` and re-uses the existing file if found, instead of securely checking the file's content or ensuring atomic, unique extraction. This allows a Local Attacker to pre-create a malicious CA bundle file (e.g., `/tmp/cacert.pem`) before a vulnerable application (running with potentially higher privileges) initializes the `requests` library. Version 2.33.0 contains a patch. Added CVSS V3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N Added CWE CWE-377 Added Reference https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7 Added Reference https://github.com/psf/requests/releases/tag/v2.33.0 Added Reference https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2